package file;

import java.io.File;

//将单签项目目录下1.txt-100.txt删除
public class Test02 {
    public static void main(String[] args) {
        for (int i = 1; i <= 100; i++) {
            File f = new File(i + ".txt");
            if (f.exists()) {
                f.delete();
                System.out.println("文件已成功删除");
            } else {
                System.out.println("文件不存在");
            }
        }
    }
}
